package gameserver;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class TestServer {
	
	public static void main(String[] args) {
		try {
			ServerSocket server = new ServerSocket(1991);
			while(true){
				Socket socket = server.accept();
				InputStream input = socket.getInputStream();
				input.read();
				
				System.out.println("连接了："+socket.getInetAddress());
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		
	}
}
